package com.fegin.bean.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 菜单资源表
 * </p>
 *
 * @author 张子艺
 * @since 2019-01-08
 */
@TableName("admin_permission")
public class MenuResourse extends Model<MenuResourse> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 菜单名字
     */
	@TableField("menu_name")
	private String menuName;
    /**
     * 菜单URL
     */
	@TableField("menu_url")
	private String menuUrl;
    /**
     * 菜单级别  1 一级菜单  2 二级菜单
     */
	@TableField("menu_lev")
	private Integer menuLev;
    /**
     * 菜单样式
     */
	@TableField("menu_class")
	private String menuClass;
    /**
     * 菜单类型  1 导航  2首页板块
     */
	@TableField("menu_type")
	private Integer menuType;
    /**
     * 上级菜单
     */
	@TableField("parent_id")
	private Long parentId;
    /**
     * 排序
     */
	@TableField("menu_order")
	private Integer menuOrder;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public Integer getMenuLev() {
		return menuLev;
	}

	public void setMenuLev(Integer menuLev) {
		this.menuLev = menuLev;
	}

	public String getMenuClass() {
		return menuClass;
	}

	public void setMenuClass(String menuClass) {
		this.menuClass = menuClass;
	}

	public Integer getMenuType() {
		return menuType;
	}

	public void setMenuType(Integer menuType) {
		this.menuType = menuType;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getMenuOrder() {
		return menuOrder;
	}

	public void setMenuOrder(Integer menuOrder) {
		this.menuOrder = menuOrder;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "MenuResourse{" +
			"id=" + id +
			", menuName=" + menuName +
			", menuUrl=" + menuUrl +
			", menuLev=" + menuLev +
			", menuClass=" + menuClass +
			", menuType=" + menuType +
			", parentId=" + parentId +
			", menuOrder=" + menuOrder +
			"}";
	}
}
